concatenated together. This is useful for building
libraries of AWK functions, without having to include them
in each new AWK program that uses them. It also provides
the ability to mix library functions with command line
programs.
The environment variable AAAAWWWWKKKKPPPPAAAATTTTHHHH specifies a search path to
use when finding source files named with the ----ffff option. If
this variable does not exist, the default path is
""""....::::////uuuussssrrrr////lllliiiibbbb////aaaawwwwkkkk::::////uuuussssrrrr////sssskkkkuuuunnnnkkkk////lllliiiibbbb////aaaawwwwkkkk"""". If a file name given
to the ----ffff option contains a ``/'' character, no path search
is performed.
_G_a_w_k executes AWK programs in the following order. First,
all variable assignments specified via the ----vvvv option are
performed. Next, _g_a_w_k compiles the program into an internal
form. Then, _g_a_w_k executes the code in the BBBBEEEEGGGGIIIINNNN block(s)
(if any), and then proceeds to read each file named in the
AAAARRRRGGGGVVVV array. If there are no files named on the command
line, _g_a_w_k reads the standard input.
If a filename on the command line has the form _v_a_r====_v_a_l it is
treated as a variable assignment. The variable _v_a_r will be
assigned the value _v_a_l. (This happens after any BBBBEEEEGGGGIIIINNNN
block(s) have been run.) Command line variable assignment is
most useful for dynamically assigning values to the
variables AWK uses to control how input is broken into
fields and records. It is also useful for controlling state
if multiple passes are needed over a single data file.
If the value of a particular element of AAAARRRRGGGGVVVV is empty (""""""""),
_g_a_w_k skips over it.
For each line in the input, _g_a_w_k tests to see if it matches
any _p_a_t_t_e_r_n in the AWK program. For each pattern that the
line matches, the associated _a_c_t_i_o_n is executed. The
patterns are tested in the order they occur in the program.
Finally, after all the input is exhausted, _g_a_w_k executes the